<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:constants="http://www.tuanzi.com/constants/tags">

    <div class="ui-g">
        <div class="ui-g-12"><h3><b>百度黑名单检测</b></h3></div>
        <div class="ui-g-2">
            <p:outputLabel value="风险等级"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{userTagInfoBean.$.userValidateView.baiduJR.blackLevel}" readonly="true"/>
        </div>

        <div class="ui-g-2">
        </div>
        <div class="ui-g-4">
        </div>

        <p:dataTable emptyMessage="#{constants:get('EMPTY_MESSAGE')}"
                     reflow="true"
                     resizableColumns="true"
                     var="result"
                     value="#{userTagInfoBean.$.userValidateView.baiduJR.results}">
            <p:column headerText="风险名单原因" width="15%">
                <h:outputText value="#{result.blackReason}"/>
            </p:column>
            <p:column headerText="风险名单详情">
                <h:outputText escape="false" value="#{result.blackDetail}" readonly="true"/>
            </p:column>
        </p:dataTable>

        <div class="ui-g-12">
            <h3><b>点金征信查询</b></h3>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="用户所在地"/>
        </div>
        <div class="ui-g-10">
            <p:inputText
                    value="#{userTagInfoBean.$.userValidateView.dianJin.address}"
                    readonly="true"/>
        </div>

        <div class="ui-g-12">
            <p:dataTable
                    style="width: 110%"
                    emptyMessage="#{constants:get('EMPTY_MESSAGE')}"
                    scrollable="true"
                    scrollWidth="97%"
                    reflow="true"
                    resizableColumns="true"
                    var="result"
                    value="#{userTagInfoBean.$.userValidateView.dianJin.results}">

                <p:column headerText="平台类型">
                    <h:outputText value="#{result.type}"/>
                </p:column>
                <p:column headerText="平台代码">
                    <h:outputText value="#{result.platformCode}"/>
                </p:column>
                <p:column headerText="注册时间">
                    <h:outputText value="#{result.registerTime}"/>
                </p:column>
                <p:column headerText="申请时间">
                    <h:outputText value="#{result.applicationTime}"/>
                </p:column>
                <p:column headerText="申请金额区间">
                    <h:outputText value="#{result.applicationAmount}"/>
                </p:column>
                <p:column headerText="申请结果">
                    <h:outputText value="#{result.applicationResult}"/>
                </p:column>
                <p:column headerText="放款时间">
                    <h:outputText value="#{result.loanLendersTime}"/>
                </p:column>
                <p:column headerText="放款金额区间">
                    <h:outputText value="#{result.loanLendersAmount}"/>
                </p:column>
                <p:column headerText="逾期数量">
                    <h:outputText value="#{result.counts}"/>
                </p:column>
                <p:column headerText="逾期/欠款金额区间">
                    <h:outputText value="#{result.money}"/>
                </p:column>
            </p:dataTable>
        </div>

        <div class="ui-g-12">
            <h3><b>用户授权信息</b></h3>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="手机定位"/>
        </div>
        <div class="ui-g-4">
            <p:inputText readonly="true" value="#{userTagInfoBean.$.userValidateView.authInfo.phonePosition}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="运营商授权"/>
        </div>
        <div class="ui-g-4">
            <p:inputText readonly="true" value="#{userTagInfoBean.$.userValidateView.authInfo.ispAuth}"/>
        </div>


        <div class="ui-g-2">
            <p:outputLabel value="芝麻信用"/>
        </div>
        <div class="ui-g-4">
            <p:inputText readonly="true" value="#{userTagInfoBean.$.userValidateView.authInfo.sesamePoint}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="手机通讯录"/>
        </div>
        <div class="ui-g-4">
            <p:inputText readonly="true" value="#{userTagInfoBean.$.userValidateView.authInfo.phoneContacts}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="手机入网时长"/>
        </div>
        <div class="ui-g-4">
            <p:inputText readonly="true" value="#{userTagInfoBean.$.userValidateView.authInfo.phoneNetAccessTime}"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="FaceID认证"/>
        </div>
        <div class="ui-g-4">
            <p:inputText readonly="true" value="#{userTagInfoBean.$.userValidateView.authInfo.faceIdAuth}"/>
        </div>

        <div class="ui-g-12">
            <h3><b>手机通讯录</b></h3>
        </div>

        <div class="ui-g-12">
            <p:dataTable
                    style="width: 100%"
                    emptyMessage="#{constants:get('EMPTY_MESSAGE')}"
                    reflow="true"
                    resizableColumns="true"
                    var="result"
                    value="#{userTagInfoBean.$.userValidateView.contacts}">

                <p:column headerText="姓名">
                    <h:outputText value="#{result.name}"/>
                </p:column>
                <p:column headerText="联系电话">
                    <h:outputText value="#{result.number}"/>
                </p:column>
            </p:dataTable>
        </div>

        <div class="ui-g-12">
            <h3><b>运营商通话记录</b></h3>
        </div>

        <div class="ui-g-12">
            <p:dataTable
                    style="width: 100%"
                    emptyMessage="#{constants:get('EMPTY_MESSAGE')}"
                    reflow="true"
                    resizableColumns="true"
                    var="result"
                    value="#{userTagInfoBean.$.userValidateView.callLogs}">
                <p:column headerText="通话日期">
                    <h:outputText value="#{result.callDate}"/>
                </p:column>
                <p:column headerText="联系电话">
                    <h:outputText value="#{result.phoneNumber}"/>
                </p:column>
                <p:column headerText="号码归属地">
                    <h:outputText value="#{result.phoneNumberHomeLocation}"/>
                </p:column>
                <p:column headerText="通话时长">
                    <h:outputText value="#{result.callTime}"/>
                </p:column>
                <p:column headerText="呼出/呼入">
                    <h:outputText value="#{result.callType}"/>
                </p:column>
            </p:dataTable>
        </div>
    </div>
</ui:composition>